<?
$users = $this->users;
?>

<div class="content-box">
    <div class="content-box-header">
        <h3>Users</h3>
    </div>
    <div class="content-box-content">
        <div class="tab-content default-tab">
            <table>
                <thead>
                <tr>
                    <th>#</th>
                    <th>Email</th>
                    <th>Name</th>
                    <th>Money</th>
                </tr>
                </thead>
                <tbody>
                <? foreach ($users as $key => $user): ?>
                <tr>
                    <td><?= $key + 1 ?></td>
                    <td><?= $user['email'] ?></td>
                    <td><?= $user['name'] ?> <?= $user['lastName'] ?></td>
                    <td><a href="/users/view/id/<?= $user['id'] ?>"> <?= $user['money'] ?></a></td>
                </tr>
                    <? endforeach; ?>
                </tbody>
            </table>
        </div>
    </div>
</div>